<!--头部-->
{template "header.html"}
<!--首页导航-->
{template "index-daohang.html"}
<div class="container d-gao-10 d-yincang">
</div>
{if $get.youbian !='1'}

<div class="d-kuangjia d-yincang-pc navbar-fixed-top" style="background-color: #ffffff">
	<div class="d-row" >
    	<div class="d-col-md-8">
			<div class="d-yuanjiao-bianhua-10-10 d-kuan d-bianhua-20 " style="background-color: #ffffff">
				<!--圈子头部-->
				<div class="row">
					<!--返回-->
					<div class="col-md-12 col-xs-12 d-div-zou  d-buhuanhang d-yincang-pc d-huading-100"> 
					    <a href="javascript:goBack();">
					        <img src="{HOME_THEME_PATH}quan/img/fanhui-hui.svg" width="20" height="20" class=""/>
						</a>
						<a href="{CLIENT_URL}index.php?ye=0">
						    <img class="pull-right" src="{HOME_THEME_PATH}quan/img/shouye2.png" height="20"/> 
						</a>
						<div class="pull-right d-zuoyou-20 d-quxian-0 d-buhuanhang">
							<div class="dropdown d-you-10">

							</div>
						</div>
					</div>
				</div>
			</div>
			
		</div>
	</div>
</div>
{/if}
<div class="d-wu">
	<div class="d-wu" id="dizhi">
	<div class="d-kuangjia d-beijing-baise" >
		<div class="d-row" >
			<div class="col-md-2 d-yincang d-piaofu-95" style="z-index: 1000;">
				 <span style="width: 10px; color: #ffffff;">.</span>
				<div class="d-piaofu-0-2">
					
					{template "index-zuobian-quanzi.html"}
					
				</div>
				
			</div>
			
			<div class="col-md-7">
				<div class="d-yuanjiao-bianhua-10-10 d-kuan d-beijing-baise d-bianhua-20 ">
					
					{if $get.youbian !='1'}
					<div class="d-kuan d-gao-40 d-beijing-baise d-yincang-pc">
						
					</div>
					{/if}
					<div class="d-kuan d-gao-40 d-beijing-baise d-yincang">
						<div class="pull-left">
							
							<a href="javascript:goBack();">
								<img src="{HOME_THEME_PATH}quan/img/fanhui-hui.svg" height="20" width="20" class="d-kuan-20-20"/>
							</a>
							
							
						</div>
						<div class="pull-right d-quxian-0 d-buhuanhang">
							
						</div>
					</div>
					
					<div class="d-kuan">
						<form action="/index.php?s=member&app=pay&c=pay" class="form-horizontal" method="post" name="myform" id="payform">
							{dr_form_hidden()}

							<!--input type="hidden" name="pay[shuliang]" value="1" /-->
							
							<div class="d-kuan d-shangpin-kuan d-xia-10">
								
							</div>
							<div class="d-kuan d-shangpin-kuan d-xia-10">
								
							</div>
							<div class="">
								<div v-html="zhifu"></div>
							</div>
						
						</form>
					</div>
				</div>
				
			</div>
			<div class="col-md-3">
				
				
			</div>
		</div>
	</div>
	
	
	
    </div>
</div>
<style>
	.btn.green:not(.btn-outline).active, .btn.green:not(.btn-outline):active, .btn.green:not(.btn-outline):hover, .open>.btn.green:not(.btn-outline).dropdown-toggle {
	    color: #FFF;
	    background-color: #3fc59f;
	    border-color: #3fc59f;
	}
	.btn.green:not(.btn-outline) {
	    color: #FFF;
	    background-color: #3fc59f;
	    border-color: #3fc59f;
	}
</style>
<script type="text/javascript">
	const { createApp } = Vue;
	const app = createApp({  
		data() {
		    return {  
		       
				zhifu:''
		    };  
		},  
		
		methods: {  
			
			chuangyejinzhifu() {
			    axios.get('/index.php?s=quan&c=chuangyejin&m=zhifu&id={$_GET['id']}&cid={$_GET['cid']}') // 发送GET请求到指定的URL  
			        .then(response => {

						if(response.data.code==1){
							this.zhifu = response.data.data.data;
						}
			        })  
			        .catch(error => {  
			            console.error('Error fetching products:', error); // 处理错误情况  
			        });  
			},
			
			/*postxiugaidata(id) {
				// 使用axios发送POST请求
				var data = '&xingming='+this.morendizhi['xingming']+'&shoujihaoma='+this.morendizhi['shoujihaoma']+'&dizhi='+this.morendizhi['dizhi'];
			    axios.post('/index.php?s=member&app=quan&c=dizhi&m=xiugai&id='+id,data) // 发送GET请求到指定的URL  
			        .then(response => {
						
						if(response.data.code==0){
							layer.msg(response.data.msg,{time:500});
						}
						if(response.data.code==1){
							this.gouwudizhi();
							this.gouwuzhifu();
							$("#mydizhixiugai").hide();
							$(".modal-backdrop").hide();
						}
			            // 假设服务器返回的数据在response.data中  
			        })  
			        .catch(error => {  
			            console.error('Error fetching products:', error); // 处理错误情况  
			        });  
			},*/
			
		},
		mounted() {
			// 在组件挂载后调用fetchProducts方法  
			
			this.chuangyejinzhifu();
		},
	}); 
	// 挂载应用到DOM元素上
	app.mount('#dizhi'); 
	// 购买地址
	    function add_buy() {
	        var url = "{dr_url('quan/shangpin/buy', ['id' => $id]}";
	        $.get("/index.php?is_ajax=1&s=quan&c=shangpin&m=jiance&id={$id}", function(data){
	        	//dr_cmf_tips(data.code, data.msg);
	            if (data.code =="1") {
	        		
					window.location.href = url;
					
	                //console.log('jin', msg); 
	            }
				if (data.code =="0") {
					
					layer.msg(data.msg,{time:500});
				   
				}
				
	        }, 'json');
	    }
		
</script>
<!--尾部-->
{template "fanhui.html"}
{template "footer.html"}